var a = getApp();

Page({
  data: {
    yaoqing: !0,
    // 公告
    noticeList: [],
    loadingBoo: !0,
    moreBoo: !0,
    currentResult: 0,
    noFlag: !1,
    hideFalg: !1
  },
  previewImage: function (a) {
    console.log(a);
    var t = this;
    this.setData({
      hideFalg: !0
    });
    var e = a.currentTarget.dataset.index;
    let aa = "/assets/images/set_Img.png";
    wx.previewImage({
      current: aa,
      urls: aa
    });
  },
  onLoad: function (a) {
    var t_id = a.t_id
    if (a.yaoqing) {
      this.setData({
        yaoqing: a.yaoqing,
      })
    }
    this.setData({
      t_id: a.t_id,
    })
    this.getNoticeList(t_id)
  },
  onReady: function () { },
  onShow: function () {

  },
  onHide: function () {
    this.data.hideFalg || this.setData({
      hideFalg: !1
    });
  },
  onUnload: function () { },
  onPullDownRefresh: function () { },
  onReachBottom: function () { },
  onShareAppMessage: function () { },
  getMore: function () {
    var a = this;
    a.data.moreBoo && a.data.loadingBoo && (a.setData({
      loadingBoo: !1
    }), a.getNoticeList(a));
  },
  getNoticeList: function (t_id) {
    var that = this
    a.util.request({
      'url': 'entry/wxapp/Studio.gonggaolist',
      data: {
        t_id: t_id,
      },
      success: function (res) {
        console.log(res)
        that.setData({
          noticeList1: res.data.noticeList,
          zhiding: res.data.zhiding,
        })
      }
    })
  },
});